package com.tbit.uqbike.object.pojo;

import com.tbit.uqbike.annos.Excel;

import java.util.Date;
import java.util.List;

/**
 * 终端告警
 *
 * @author Leon
 * 2017年5月23日 上午10:48:18
 */
public class TerAlarm {
    /**
     * 设备id
     */
    private Integer machineId;
    /**
     * 车辆编码
     */
    @Excel(name = "车辆编号", sort = 1)
    private String userCode;
    /**
     * 设备编号
     */
    @Excel(name = "设备编号", sort = 2)
    private String machineNO;
    /**
     * 发生时间
     */
    @Excel(name = "告警时间", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 3)
    private Date dt;
    /**
     * 告警类型
     */
    @Excel(name = "告警类型", sort = 4, readConverterExp = "0=备用电池低电告警,1=震动告警,2=非法打开电门锁告警,3=电子围栏告警,4=BMS异常告警,5=断电告警-GPS自检测,6=超速告警,7=轮动告警,8=车辆故障告警,9=控制器一线制告警,13=摄像头告警,100=高速出界告警,32=载人断电,33=解除载人断电")
    private Integer alarmType;
    /**
     * 告警扩展代码
     */
    private List<Integer> alarmExCode;
    /**
     * 告警扩展内容
     */
    private String alarmExMsg;

    public Integer getMachineId() {
        return machineId;
    }

    public void setMachineId(Integer machineId) {
        this.machineId = machineId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getMachineNO() {
        return machineNO;
    }

    public void setMachineNO(String machineNO) {
        this.machineNO = machineNO;
    }

    public Date getDt() {
        return dt;
    }

    public void setDt(Date dt) {
        this.dt = dt;
    }

    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    public List<Integer> getAlarmExCode() {
        return alarmExCode;
    }

    public void setAlarmExCode(List<Integer> alarmExCode) {
        this.alarmExCode = alarmExCode;
    }

    public String getAlarmExMsg() {
        return alarmExMsg;
    }

    public void setAlarmExMsg(String alarmExMsg) {
        this.alarmExMsg = alarmExMsg;
    }

    @Override
    public String toString() {
        return "TerAlarm{" +
                "machineId=" + machineId +
                ", userCode='" + userCode + '\'' +
                ", machineNO='" + machineNO + '\'' +
                ", dt=" + dt +
                ", alarmType=" + alarmType +
                ", alarmExCode=" + alarmExCode +
                ", alarmExMsg='" + alarmExMsg + '\'' +
                '}';
    }
}
